﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Century.EnterpriseLibrary.Validation.DbProvider
{
    public class ValidationRule
    {
        public int Id { get; set; }
        public string Domain { get; set; }
        public string PageName { get; set; }
        public string EntityName { get; set; }
        public string FieldName { get; set; }
        public string RegExpression { get; set; }
        public bool IsRequired { get; set; }
        public bool IsNumber { get; set; }
        public bool IsEmail { get; set; }
        public decimal? Max { get; set; }
        public decimal? Min { get; set; }
        public int? MinLength { get; set; }
        public int? MaxLength { get; set; }
        public string RegErrorMessage { get; set; }

      
    }
}
